import { axios } from "../../utils/request";

const api = {
    List: "/in/warehouse/pageList",
    Save: "/in/warehouse/save",
    DELETE: "/in/warehouse/delete"
};


/**
* 获取仓库档案列表
*/
export function pageList(parameter) {
    return axios({
        url: api.List,
        method: "get",
        params: parameter,
        timeout: 500000,
    });
}


/**
 * 新增/修改仓库档案
 * @param {*} data
 */
export function saveWarehouse(data) {
    return axios({
        url: api.Save,
        method: "post",
        data: data
    });
}

/**
 * 删除仓库档案
 */
export function deleteWarehouse(data) {
    return axios({
        url: api.DELETE,
        method: "delete",
        data: data
    });
}